<template>
    <a-result :status="statusCode" :title="statusCode" :sub-title="subTitle">
        <template #extra>
            <a-button type="primary" @click="router.push('/')">返回首页</a-button>
        </template>
    </a-result>
</template>

<script setup>
import { onBeforeMount, ref } from 'vue';
import { useRoute,useRouter } from 'vue-router';

const router = useRouter()
const statusCode = ref(useRoute().meta.errorCode)
const subTitle = ref(useRoute().meta.describe)
</script>
